package com.lyy.msgtool.util;

import com.lyy.msgtool.controller.vo.RelateVehicleVo;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName DataGeneration
 * @Description TODO
 * @Author louyangyi
 * @Date 2022/1/17 11:12
 **/
public class DataGeneration {
    public static List<RelateVehicleVo> vehicleData(){
        List<RelateVehicleVo> list=new ArrayList<>();
        for(int i=1;i<10;i++) {
            RelateVehicleVo relateVehicleVo = new RelateVehicleVo();
            relateVehicleVo.setInspectValidDate("2022/05/0"+i);
            relateVehicleVo.setScrapValidDate("2023/01/0"+1);
            relateVehicleVo.setVehicleOwner("test"+i);
            relateVehicleVo.setPlateNo("浙X2311"+i);
            relateVehicleVo.setUntreatedViolationCount(i);
            if(i%4==1) {
                relateVehicleVo.setPlateType("02");
                relateVehicleVo.setPlateColor("blue");
                relateVehicleVo.setVehicleType("K33");

            }
            else if(i%4==0) {
                relateVehicleVo.setPlateType("01");
                relateVehicleVo.setPlateColor("yellow");
                relateVehicleVo.setVehicleType("H21");
            }
            else if(i%4==2) {
                relateVehicleVo.setPlateType("16");
                relateVehicleVo.setPlateColor("yellow");
                relateVehicleVo.setVehicleType("K33");
            }
            else if(i%4==3) {
                relateVehicleVo.setPlateType("23");
                relateVehicleVo.setPlateColor("white");
                relateVehicleVo.setVehicleType("K33");
            }
            list.add(relateVehicleVo);
        }
        return list;
    }
}
